<?php echo 'Copyright@wpui';exit;?>
<div id="comment" class="wpui_comcomment">
	<!--{if $data[commentnum] == 0}-->
    <div class="wpui_nocomment">
    	<div class="wpui_nocomment_top">{$lang['wpui_bwzwpl']}</div>
        <div class="wpui_loginprompt">
        <!--{if $_G['uid']}-->
        <!--{else}-->
            <span class="wpui_loginprompt_txt">{$lang['wpui_nhwdl']}：</span>
            <a class="wpui_loginprompt_login" href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{$lang['wpui_dlzh']}</a>
            <a class="wpui_loginprompt_reg" href="member.php?mod={$_G[setting][regname]}">{$lang['wpui_ljzc']}</a>
        <!--{/if}-->
        </div>
    </div>
    <!--{else}-->
    <div class="wpui_nocomment"> 
    	<div class="wpui_nocomment_top">{lang post_comment}</div>
        <div class="wpui_discussnum">(<span>{$article[viewnum]}</span>{$lang['wpui_rcy']}，<span>$data[commentnum]</span>{$lang['wpui_tpl']})</div>
        <div class="wpui_loginprompt">
        <!--{if $_G['uid']}-->
        <!--{else}-->
            <span class="wpui_loginprompt_txt">{$lang['wpui_nhwdl']}：</span>
            <a class="wpui_loginprompt_login" href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{$lang['wpui_dlzh']}</a>
            <a class="wpui_loginprompt_reg" href="member.php?mod={$_G[setting][regname]}">{$lang['wpui_ljzc']}</a>
        <!--{/if}-->
        </div>
    </div>
    <!--{/if}-->
  
  <div id="comment_ul"> 
    <!--{if !empty($pricount)}-->
    <p class="mtn mbn y">{lang hide_portal_comment}</p>
    <!--{/if}--> 
    <!--{if !$data[htmlmade]}-->
    <form id="cform" name="cform" action="$form_url" method="post" autocomplete="off">
        <div class="tedt" id="tedt">
            <div class="area">
                <textarea name="message" rows="3" class="pt" id="message"  {if !$_G['uid']} placeholder="{$lang['wpui_ljdlfbpl']}"{else} placeholder="{$lang['wpui_srplnr']}"{/if} onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea>
            </div>
        </div>
        <div class="wpui_cformbot">
        <!--{if $secqaacheck || $seccodecheck}-->
            <!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
            <div class="z"><!--{subtemplate common/seccheck}--></div>
        <!--{/if}-->
        <!--{if !empty($topicid) }-->
            <input type="hidden" name="referer" value="$topicurl#comment" />
            <input type="hidden" name="topicid" value="$topicid">
        <!--{else}-->
            <input type="hidden" name="portal_referer" value="$viewurl#comment">
            <input type="hidden" name="referer" value="$viewurl#comment" />
            <input type="hidden" name="id" value="$data[id]" />
            <input type="hidden" name="idtype" value="$data[idtype]" />
            <input type="hidden" name="aid" value="$aid">
        <!--{/if}-->
        <input type="hidden" name="formhash" value="{FORMHASH}">
        <input type="hidden" name="replysubmit" value="true">
        <input type="hidden" name="commentsubmit" value="true" />
        <p class="y"><button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn y">{lang comment}</button></p>
        </div>
    </form>
    <script type="text/javascript">
    jQuery(function(){
		jQuery("#tedt .pt").focus(function(){
			  jQuery(this).addClass("on");
		}).blur(function(){
			  jQuery(this).removeClass("on");
		});
    });
    </script> 
    <!--{/if}--> 
    <!--{if $data[commentnum] == 0}-->
    <!--{else}-->
    <div class="wpui_allcomments_tit">{lang latest_comment}</div>
    <!--{/if}-->
    <div class="wpui_comment_alllist">
        <!--{loop $commentlist $comment}--> 
        <!--{template portal/comment_li}--> 
        <!--{if !empty($aimgs[$comment[cid]])}--> 
        <script type="text/javascript" reload="1">aimgcount[{$comment[cid]}] = [<!--{echo implode(',', $aimgs[$comment[cid]]);}-->];attachimgshow($comment[cid]);</script> 
        <!--{/if}--> 
        <!--{/loop}-->
    </div>
    <div class="ptn cl wpui_allcomments_btn">
        <!--{if $data[commentnum]}--><a href="$common_url" class="xi2">{lang view_all_comments}>></a><!--{/if}-->
    </div>
  </div>
</div>